package com.kanshu.ksgb.fastread.doudou.common.business.commonbean;

import android.view.View;

import com.alibaba.fastjson.annotation.JSONField;
import com.kanshu.ksgb.fastread.doudou.module.book.bean.CollectUserBean;

import java.util.List;

/**
 * Created by wcy on 2017\6\19 0019
 */
public class BookInfo {
    public static final String SHELF_ADD_FLAG = "+";
    public static final String SHELF_EMPTY_FLAG = "empty";
    public boolean is_selected;// 是否被编辑选中
    public boolean is_updated;// 书本是否有更新

    public String book_id = "";
    public String cover_url;
    public String book_title;
    public String author_name;
    public String author_id;
    public String last_chapter_id;
    public String last_chapter_title;
    public String last_chapter_time;
    public String last_chapter_date;
    public String word_count;
    public String book_title_spell;
    public String book_intro;
    public String join_time;
    public String writing_process;
    public String is_online;
    public String book_type;
    // 分类信息
    public CategoryItem category_id_1;
    public CategoryItem category_id_2;
    public CategoryInfo category_info;
    // 点击数量
    public String total_click_num;
    // 多少人追读使用字段
    public String week_click_num;
    // 多少人追读使用字段
    public String week_collect_num;

    // 收藏
    public String total_collect_num;
    // 男生女生
    public String site;
    public String content_id;
    public String c_order;
    public String chapter_count;
    // 以下是专题字段
    public String id;
    public String app_id;
    public String type_name;
    public String title;
    public String title_desc;
    public String title_big_img;
    public String title_small_img;
    public String title_small_img_2;
    public String book_ids;
    public String sort;
    public String small_img_title;
    public String small_img_title_color;
    // 跳转链接
    public String jump_url;
    // 热门分类
    public String img_url;
    public String category;
    // 用户收藏头像
    public List<CollectUserBean> collect_user;
    // 0 没有加入书架 1加入书架
    public String join_bookcase;

    @JSONField(deserialize = false, serialize = false)
    public transient View adview;


    public static BookInfo getShelfAdd() {
        BookInfo book = new BookInfo();
        book.book_id = SHELF_ADD_FLAG;
        return book;
    }

    public static BookInfo getEmptyBook() {
        BookInfo book = new BookInfo();
        book.book_id = SHELF_EMPTY_FLAG;
        return book;
    }
}
